c how to pass an array to a function